import http from "@/utils/request"

export default {
	dict: {
		add: {
			url: '/system/dict/add',
			name: "新增字典",
			post: function (data) {
				return http.post(this.url, data);
			}
		},
		remove: {
			url: '/system/dict/remove',
			name: "删除字典",
			delete: function (data) {
				return http.delete(this.url, data);
			}
		},
		edit: {
			url: '/system/dict/edit',
			name: "编辑字典",
			put: function (data) {
				return http.put(this.url, data);
			}
		},
		list: {
			url: '/system/dict/list',
			name: "字典列表",
			get: function (params) {
				return http.get(this.url, params);
			}
		},
		getDataByCode: {
			url: '/system/dict/getDataByCode',
			name: "获取字典项",
			get: function (params) {
				return http.get(this.url, params);
			}
		}
	},
	dictData: {
		add: {
			url: '/system/dictData/add',
			name: "新增字典项",
			post: function (data) {
				return http.post(this.url, data);
			}
		},
		remove: {
			url: '/system/dictData/remove',
			name: "删除字典项",
			delete: function (data) {
				return http.delete(this.url, data);
			}
		},
		edit: {
			url: '/system/dictData/edit',
			name: "编辑字典项",
			put: function (data) {
				return http.put(this.url, data);
			}
		},
		page: {
			url: '/system/dictData/page',
			name: "字典项分页",
			get: function (params) {
				return http.get(this.url, params);
			}
		},
		changeStatus: {
			url: '/system/dictData/changeStatus',
			name: "修改状态",
			put: function (data) {
				return http.put(this.url, data);
			}
		}
	},
	config: {
		add: {
			url: '/system/config/add',
			name: "新增系统配置",
			post: function (data) {
				return http.post(this.url, data);
			}
		},
		remove: {
			url: '/system/config/remove',
			name: "删除系统配置",
			delete: function (data) {
				return http.delete(this.url, data);
			}
		},
		edit: {
			url: '/system/config/edit',
			name: "编辑系统配置",
			put: function (data) {
				return http.put(this.url, data);
			}
		},
		page: {
			url: '/system/config/page',
			name: "系统配置分页",
			get: function (params) {
				return http.get(this.url, params);
			}
		}
	},
	notice: {
		add: {
			url: '/system/notice/add',
			name: "新增公告",
			post: function (data) {
				return http.post(this.url, data);
			}
		},
		remove: {
			url: '/system/notice/remove',
			name: "删除公告",
			delete: function (data) {
				return http.delete(this.url, data);
			}
		},
		edit: {
			url: '/system/notice/edit',
			name: "编辑公告",
			put: function (data) {
				return http.put(this.url, data);
			}
		},
		page: {
			url: '/system/notice/page',
			name: "公告分页",
			get: function (params) {
				return http.get(this.url, params);
			}
		}
	},
	operationLog: {
		remove: {
			url: '/system/operationLog/remove',
			name: "删除操作日志",
			delete: function (data) {
				return http.delete(this.url, data);
			}
		},
		clear: {
			url: '/system/operationLog/clear',
			name: "清空操作日志",
			delete: function () {
				return http.delete(this.url);
			}
		},
		page: {
			url: '/system/operationLog/page',
			name: "操作日志分页",
			get: function (params) {
				return http.get(this.url, params);
			}
		}
	},
	loginLog: {
		remove: {
			url: '/system/loginLog/remove',
			name: "删除登录日志",
			delete: function (data) {
				return http.delete(this.url, data);
			}
		},
		clear: {
			url: '/system/loginLog/clear',
			name: "清空登录日志",
			delete: function (data) {
				return http.delete(this.url, data);
			}
		},
		page: {
			url: '/system/loginLog/page',
			name: "登录日志分页",
			get: function (params) {
				return http.get(this.url, params);
			}
		}
	}
}
